var express = require('express');
var path = require("path");

var app = express();

app.use(express.static(path.join(__dirname, "public")));

app.get("*", function (req, resp) {
    console.log('request---' + req.url);
    resp.sendFile(path.join(__dirname, "public", "index.html"));
});

app.listen(3000, function(){
    console.log('server is running at port:3000');
});

